package dto;

/**
 * @author Jonathan Maret
 * Class used to manage company
 * Tostring return "name - reference"
 */
public class DTOCompany {
	
	@Override
	public String toString() {
		return name + " - " + reference; 
	}
	private int id;
	private String name;
	private String reference;
	private String email;
	private String phone;
	private String fax;
	private String address;
	private String localite;
	private int npa;
	public DTOCompany(int id, String name, String reference, String email,
			String phone, String fax, String address, String localite, int npa) {
		super();
		this.id = id;
		this.name = name;
		this.reference = reference;
		this.email = email;
		this.phone = phone;
		this.fax = fax;
		this.address = address;
		this.localite = localite;
		this.npa = npa;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getReference() {
		return reference;
	}
	public void setReference(String reference) {
		this.reference = reference;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getLocalite() {
		return localite;
	}
	public void setLocalite(String localite) {
		this.localite = localite;
	}
	public int getNpa() {
		return npa;
	}
	public void setNpa(int npa) {
		this.npa = npa;
	}

}
